
export default [
    {
        url: "/api/getUsers",
        method: "get",
        response: () => {
            return {
                code: 0,
                message: "ok",
                data: {
                    'rows|10': [{
                        id: '@guid',
                        name: '@cname',
                        'age|20-30': 23,
                        'job|1': ['前端工程师', '后端工程师', 'UI工程师', '需求工程师']
                    }]
                },
            }
        }
    },
    // 用户信息
    {
        url: '/api/getUserInfo',
        method: 'get',
        response: () => {
            return {
                code: 0,
                message: 'ok',
                data: {
                    name: '张小枫',
                    age: '19',
                    phone: '17689669866',
                    sex: 2,// 1男2女0未知
                    "img": "@image(90*90,@color)",
                    token: 'ghgvjhbkjvcfyugvtiyohuyrszduxtycfglojnuhblivgukhcxfdcfgvjhk',
                    province: "@province()",//随机省份
                },
            }
        },
    },
    // 菜单列表
    {
        url: '/api/getMenuTree',
        method: 'get',
        response: () => {
            return {
                code: 200,
                message: 'ok',
                data: {
                    menulist: [
                        {
                            "name": "首页", // 菜单名字
                            "icon": 'HomeFilled', // icon图标
                            "path": '/',// 路由
                            "components": 'pages/index',// 项目路径
                            "pageId": "@GUID()",
                            "children": [],// 子菜单集合
                        },
                        {
                            "name": "用户管理",
                            "icon": 'UserFilled',
                            "path": '',
                            "components": '',
                            "pageId": "@GUID()",
                            "children": [
                                {
                                    "name": "权限管理",
                                    "icon": 'SwitchFilled',
                                    "path": '',
                                    "components": '',
                                    "pageId": "@GUID()",
                                    "children": [
                                        {
                                            "name": "角色管理",
                                            "icon": 'Setting',
                                            "path": '/user/department',
                                            "components": 'pages/user/department',
                                            "pageId": "@GUID()",
                                            "children": [],// 子菜单集合
                                        },
                                        {
                                            "name": "部门管理",
                                            "icon": 'Setting',
                                            "path": '/user/role',
                                            "components": 'pages/user/role',
                                            "pageId": "@GUID()",
                                            "children": [],// 子菜单集合
                                        },
                                    ],// 子菜单集合
                                },
                                {
                                    "name": "新增用户",
                                    "icon": 'AddLocation',
                                    "path": '/user/addUser',
                                    "components": 'pages/user/addUser',
                                    "pageId": "@GUID()",
                                    "children": [],// 子菜单集合
                                },
                            ],
                        },
                    ],
                },
            }
        },
    }
]
